package com.coderly.onlinegallerysharingplatform.model.dto.req.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户注册请求实体
 */
@Data
public class UserRegisterReqDTO {

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    @Size(min = 4, message = "用户账号过短")
    private String account;

    /**
     * 密码
     */

    @NotBlank(message = "密码不能为空")
    @Size(min = 8, message = "用户密码过短")
    private String password;

    /**
     * 确认密码
     */
    @NotBlank(message = "确认密码不能为空")
    @Size(min = 8, message = "用户密码过短")
    private String checkPassword;

}
